<?php

namespace app\middleware;

use Closure;

class YqCheck
{
    public function handle($request, Closure $next)
    {
        if (!session('yq')){
            return redirect('/login');
        }
        return $next($request);
    }
}